/*
*************************************
* PocketGTT
*************************************
This file is part of PocketGTT.

PocketGTT is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

PocketGTT is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with PocketGTT.  If not, see <http://www.gnu.org/licenses/>.
*/

import QtQuick 1.0


Item {
    //    id: infopanel
    //    anchors.top: info_title.bottom
    //    anchors.bottom: parent.bottom
    //    anchors.left: parent.left
    //    anchors.right: parent.right
    //    anchors.topMargin: 8
    //    color: "transparent"
    id: prefMainPage


    PreferredListPageSearchBar {
        id: searchBar

    }

    Separator {
        id: sep1
        anchors.top: searchBar.bottom
        anchors.horizontalCenter: parent.horizontalCenter
    }

    PreferredListPageContent {
        id: preferredSelectionStop
        width: parent.width
        anchors.top: sep1.bottom
        anchors.topMargin: 10
        anchors.bottom: parent.bottom
        anchors.bottomMargin: 5
        anchors.leftMargin: 35
        anchors.rightMargin: 35
    }

    PreferredListPageMultiSelectionStop {
        anchors.centerIn: preferredSelectionStop
        width: preferredSelectionStop.width
        height: preferredSelectionStop.height
    }

    states: [

        State {
            name: "hidden"
            when: myWin.statesMan.pageViewStatus == 1 //GTTStopInfo.resultsPage
            PropertyChanges { target: prefMainPage; opacity: 0}
            //            PropertyChanges { target: bgImg; source: "qrc:BG_03.svg"}
        }
    ]

}
